package com.firesrc.service;

import com.firesrc.mail.thread.SearchMailRunable;
import com.firesrc.util.S;
import com.firesrc.util.SystemConfigConstant;

public class SearchMailExecutorManager extends SuperScheduledExecutorManager {

  @Override
  protected long getScheduledInterval() {
    return S.i(SystemConfigConstant.SEARCH_MAIL_INTERVAL);
  }

  @Override
  protected Runnable getSubRunnableTask() {
    return new SearchMailRunable();
  }

  @Override
  protected int getThreadCount() {
    return S.i(SystemConfigConstant.SEARCH_MAIL_THREAD_COUNT);
  }

}
